package com.rika.service.impl;

import com.rika.dao.VenderDao;
import com.rika.pojo.Vender;
import com.rika.service.VenderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class VenderServiceImpl implements VenderService {
    @Resource
    private VenderDao venderDao;
    @Override
    public List<Vender> selectAllVender(Map<String, Object> params) {
        return venderDao.selectAllVender(params);
    }

    @Override
    public Integer countAll() {
        return venderDao.countAll();
    }

    @Override
    public void insertVender(Vender vender) {
        venderDao.insertVender(vender);
    }

    @Override
    public void deleteVender(String venderCode) {
        venderDao.deleteVender(venderCode);
    }

    @Override
    public Vender selectByVenderCode(String venderCode) {
        return venderDao.selectByVenderCode(venderCode);
    }

    @Override
    public void updateVender(Vender vender) {
        venderDao.updateVender(vender);
    }

    @Override
    public List<Vender> selectAllVenderForPo() {
        return venderDao.selectAllVenderForPo();
    }

    @Override
    public List<Vender> selectVenderByName(String name) {
        return venderDao.selectVenderByName(name);
    }

}
